import time
import requests

head = {"Connection": "keep-alive"}
url = "http://127.0.0.1:9988"

client = requests.session()
r = client.get(url, headers=head)
time.sleep(1)
r = client.get(url, headers=head)

print(r.status_code)
print(r.text)

""" 测试结果
2次请求, 抓包只发了一次tcp.syn 请求, 沿用了之前的tcp连接
"""
